package com.chinasoft.feignclient.client;

import com.chinasoft.ms.dto.CarDTO;
import com.chinasoft.ms.dto.CarWithUserDTO;
import com.chinasoft.ms.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "carWithuser-service")
public interface CarWithUserClient {
    @PostMapping("/CarWithUser/add/")
    public int addCarWithUser(@RequestBody CarWithUserDTO carDTO);

    @PostMapping("/CarWithUser/{carId}")
    public int deleteCarWithUser(@PathVariable Long carId);
}
